import {
    postRequest,
    getRequest,
    putRequest
  } from "../utils/request.js" //引用request
  // 登录
  export const requst_get_login = data => postRequest(`/login`, data);
  // 获取地区
  export const requst_get_regions = data => getRequest(`/regions`, data);
  // 获取首页数据
  export const requst_get_index = data => getRequest(`/index`, data);
  // 获取用户数据
  export const requst_get_user_detail = data => getRequest(`/user/detail`, data);
  // 微信注册
  export const requst_get_user_reg = data => postRequest(`/user/reg`, data);
